package config

import (
	"longmen/server/config/global"
	"longmen/server/pkg/common/lib/rabbitmq"
)

var RabbitConf rabbitmq.Config

var ConfigPath = "../../../config/app.properties"

func InitConsumerConfig() {
	RabbitConf = rabbitmq.Config{
		Host:     global.Config.GetString("rabbitmq.host"),
		Port:     global.Config.GetInt("rabbitmq.port"),
		Username: global.Config.GetString("rabbitmq.username"),
		Password: global.Config.GetString("rabbitmq.password"),
		Vhost:    global.Config.GetString("rabbitmq.vhost"),
	}
}
